<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>随行付</title>
<meta name="Copyright" content="Douco Design." />
<link href="css/public.css" rel="stylesheet" type="text/css">
<link href="css/haiersoft.css" rel="stylesheet" type="text/css" media="screen,print" />
<script type="text/javascript" src="js/jquery.min.js"></script>

<script type="text/javascript" src="js/global.js"></script>
<script type="text/javascript" src="js/piliangfukuan.js"></script>
</head>
<body>
<div id="dcWrap">
 <div id="dcHead">
 <div id="head">
  <div class="nav">
   <ul class="navRight">
    <li><a href="JavaScript:void(0);">您好，admin</a>
    </li>
    <li class="noRight"><a href="login.php?rec=logout">退出</a></li>
   </ul>
  </div>
 </div>
</div>
<!-- dcHead 结束 --> <div id="dcLeft"><div id="menu">
 <ul class="top">
  <li><i class="home"></i></li>
 </ul>
 <script>
		$(function() {
			$(".menu_list dt").click(function() {
				$(this).toggleClass("open").next().slideToggle("fast");
			});
			//添加序号
		    var len = $('table tr').length;
		    for(var i = 1;i<len;i++){
		        $('table tr:eq('+i+') td:first').text(i);
		    }
		});
	</script>

<div class="menu_list">
<dl>
<dt><span>付款申请</span></dt>
<dd>
<a href="danbifukuan"><i class="system"></i><em>单笔付款</em></a>
</dd>
<dt><span>交易查询</span></dt>
<dd>
<a href="daifujiaoyiHandler"><i class="system"></i><em>代付交易查询</em></a>
<a href="zhangwuHandler"><i class="system"></i><em>账务查询</em></a>
</dd>
<dt><span>账户管理</span></dt>
<dd>
<a href="yueHandler"><i class="system"></i><em>余额查询</em></a>
<a href="clientstatusHandler"><i class="system"></i><em>商户状态查询</em></a>
</dd>
</dl>
</div>
</div>
</div>
 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">付款申请<b>></b><strong>批量付款申请</strong> </div>   
<div id="manager" class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
    <h3>批量付款申请</h3>
  	<!-- 
  	<form action="piliangHandler" method="post" enctype="multipart/form-data">
		<input class="btnGray" id="piliang_file" type="file" name="uploadfile" accept="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" size="50" />&nbsp;
		<input id="piliang_uploadBtn" type="submit" class="btnGray" value="上传" onclick="return check();"/>&nbsp;
		<input id="piliang_resetBtn" type="button" class="btnGray" value="重置" onclick="resetFile()" />
	</form>
	 -->
	<form id="uploadForm">
	<input class="btnGray" id="piliang_file" type="file" name="uploadfile" accept="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" size="50" onchange="fileChange(this)" />&nbsp;
	<input id="piliang_uploadBtn" type="button" class="btnGray" value="上传" onclick="return check();"/>&nbsp;
	<input id="piliang_resetBtn" type="button" class="btnGray" value="重置" onclick="resetFile()" />
	</form>
	<!-- 批量付款表格 -->
	<div id="piliang_table">
	<div class="clear"></div>
	<div>
	<b>总笔数：</b><span id="totalCount"></span>&nbsp;<b>总金额：</b>￥<span id="totalAmt"></span>
	&nbsp;<input id="piliang_cancelBtn" class="btnGray" type="button" value="取消">
	&nbsp;<input id="piliang_submitBtn" class="btnGray" type="button" value="提交">
	</div>
	<!--  
	<div id="piliang_location">
	代付类型：&nbsp;总笔数：<span id="totalCount"></span>&nbsp;总金额：<span id="totalAmt"></span>
	&nbsp;<input id="piliang_cancelBtn" class="btnGray" type="button" value="取消">
	&nbsp;<input id="piliang_submitBtn" class="btnGray" type="button" value="提交">
	</div>
	-->
	<div class="clear"></div> 
	<!-- 
	<table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
      <tr>
        <th width="40" align="center">序号</th>
        <th width="100" align="center">收款方户名</th>
        <th width="60" align="center">账户类型</th>
        <th width="120" align="center">卡号</th>
        <th width="80" align="center">银行</th>
        <th width="120" align="center">支行</th>
        <th width="80" align="center">交易金额</th>
        <th width="40" align="center">是否短信提醒</th>
        <th width="80" align="center">手机号</th>
        <th width="100" align="center">付款用途</th>
        <th width="40" align="center">备注</th>
      </tr>
      <c:forEach var="i" items="${resData.settleDtlResultList}">
      <tr>
        <td align="center"></td>
        <td align="center"><c:out value="${i.payItemId}"/></td>
        <td align="center">
        	${fn:substring(i.timeCte,0,4)}-${fn:substring(i.timeCte,4,6)}-${fn:substring(i.timeCte,6,8)} ${fn:substring(i.timeCte,8,10)}:${fn:substring(i.timeCte,10,12)}:${fn:substring(i.timeCte,12,14)}
        </td>
        <td align="center">
        	${fn:substring(i.timeUte,0,4)}-${fn:substring(i.timeUte,4,6)}-${fn:substring(i.timeUte,6,8)} ${fn:substring(i.timeUte,8,10)}:${fn:substring(i.timeUte,10,12)}:${fn:substring(i.timeUte,12,14)}
        </td>
        <td align="center"><c:out value="${i.setAmt}"/></td>
        <td align="center">
			<c:choose>
				<c:when test="${i.setSts=='00'}">付款成功</c:when>
				<c:when test="${i.setSts=='01'}">处理中</c:when>
				<c:when test="${i.setSts=='02'}">付款成失败</c:when>
				<c:otherwise>银行退票成功</c:otherwise>
			</c:choose>
		</td>
        <td align="center"><c:out value="${i.setFreeAmt}"/></td>
        <td align="center"><c:out value="${i.refReason}"/>元</td>
      </tr>
      </c:forEach>
    </table>
     -->
	</div>
  	 
</div>
</div>
<div class="clear"></div> 
</div>
</body>
</html>